<?php $view->extend('layout_admin.php') ?>

<section class="content-header">
    <h1>
        Camps
        <small>Nouveau</small>
    </h1>
    <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> Camps</a></li>
        <li class="active">Nouveau</li>
    </ol>
</section>

<div class="row">
    <div class="col-12">
    <h1>Nouveau Camp</h1>
    <form name="admin" action="<?php echo $view['router']->generate('admin_new_camp') ?>" method="POST">
        Ville:<br>
        <input type="text" name="ville">
        <br>
        Gps Lat:<br>
        <input type="text" name="gps_lat">
        <br>
        Gps Long:<br>
        <input type="text" name="gps_long">
        <br>        
        Pays:<br>
        <select name="pays_id">
        <?php
            foreach ($pays as $p) {
        ?>
            <option value="<?php echo $p->getId() ?>"><?php echo $p->getNom() ?></option>
        <?php
            }
        ?>
        </select>
        <br>
        Camp de refugie:<br>
        <input type="checkbox" name="is_refugie">
        <br>
        Camp de vaccination:<br>
        <input type="checkbox" name="is_vaccination">
        <br>
        Camp de prevention:<br>
        <input type="checkbox" name="is_prevention">
        <br>
        <input type="submit" value="Créer">
    </form>        
        
    </div>
</div>
